Tables [dbo].[UserRole]
Properties
PropertyValue
Row Count95
Created10:31:42 AM Tuesday, March 02, 2010
Last Modified11:40:10 AM Monday, February 20, 2012
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key PK_UserRole: UserKey\RoleKeyForeign Keys FK_UserRole_UserMain: [dbo].[UserMain].UserKeyUserKeyuniqueidentifier16
No
Cluster Primary Key PK_UserRole: UserKey\RoleKeyForeign Keys FK_UserRole_RoleMain: [dbo].[RoleMain].RoleKeyRoleKeyuniqueidentifier16
No
MarkedForDeleteOndatetime8
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_UserRole: UserKey\RoleKeyPK_UserRoleUserKey, RoleKey
Yes
Foreign Keys Foreign Keys
NameColumns
FK_UserRole_RoleMainRoleKey->[dbo].[RoleMain].[RoleKey]
FK_UserRole_UserMainUserKey->[dbo].[UserMain].[UserKey]
Permissions
TypeActionOwning Principal
GrantSelectIMIS
SQL Script
CREATE TABLE [dbo].[UserRole]
(
[UserKey] [uniqueidentifier] NOT NULL,
[RoleKey] [uniqueidentifier] NOT NULL,
[MarkedForDeleteOn] [datetime] NULL
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[UserRole] ADD CONSTRAINT [PK_UserRole] PRIMARY KEY CLUSTERED ([UserKey], [RoleKey]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[UserRole] ADD CONSTRAINT [FK_UserRole_RoleMain] FOREIGN KEY ([RoleKey]) REFERENCES [dbo].[RoleMain] ([RoleKey])
GO
ALTER TABLE [dbo].[UserRole] ADD CONSTRAINT [FK_UserRole_UserMain] FOREIGN KEY ([UserKey]) REFERENCES [dbo].[UserMain] ([UserKey])
GO
GRANT SELECT ON  [dbo].[UserRole] TO [IMIS]
GO
Uses
Used By